/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.GUI.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import view.GUI.sidepanels.Palette;
import view.GUI.sidepanels.PaletteItem;

/**
 *
 * @author Jelle
 */
public class DeletePaletteItemAction extends AbstractAction {
    private Palette palette;
    private PaletteItem pi;

    public DeletePaletteItemAction(Palette palette, PaletteItem pi) {
        this.palette = palette;
        this.pi=pi;
    }

    public void actionPerformed(ActionEvent e) {
        palette.removeItem(pi);
    }
}
